package com.qfedu.yuxiaoer.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 录入房源
 */
@Data
@ApiModel(value = "SourceresourcesDto")
public class SourceresourcesDto {

    @Id
    private Integer id;
    @ApiModelProperty(value = "来源id",required = true)

    private Integer sourceId;

    @ApiModelProperty(value = "业主id",required = true)
    private Integer ownerId;
    @ApiModelProperty(value = "姓名",required = true)
    @NotNull(message = "名称不能为空")
    private String fullname;
    @ApiModelProperty(value ="手机号",required = true)
    @NotNull(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "价格",required = true)
    private String price;
    @ApiModelProperty(value = "来源/状态",required = true)
    @NotNull(message = "来源/状态不能为空")
    private String status;

    @ApiModelProperty(value = "优先级",required = true)
    @NotNull(message = "优先级不能为空")
    private String priority;

    @ApiModelProperty(value = "类型",required = true)
    @NotNull(message = "类型不能为空")
    private String  type;
    @ApiModelProperty(value = "户型",required = true)
    @NotNull(message = "户型不能为空")
    private String  house;
    @ApiModelProperty(value = "房源状态",required = true)
    @NotNull(message = "房源状态不能为空")
    private String  state;

    @ApiModelProperty(value = "面积",required = true)
    @NotNull(message = "面积不能为空")
    private Integer area;
    @ApiModelProperty(value = "托管年限",required = true)
    @NotNull(message = "托管年限不能为空")
    private Date pustodyperiod;
    @ApiModelProperty(value = "房源地址",required = true)
    @NotNull(message = "地址不能为空")
    private String address;

    @ApiModelProperty(value = "附件照片",required = true)

    private String attachment;
    @ApiModelProperty(value = "备注",required = true)

    private String remarks;

}
